package com.lejin.entity;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

@Data
@Document(indexName = "es-course",shards = 1,replicas = 0)
public class ESCourse {
    @Id
    private Long outlineId;

    @Field(type = FieldType.Text, analyzer = "ik_max_word",store=true,fielddata=true)
    private String outlineName;

    @Field(type=FieldType.Long,index=true,store=true)
    private Long cat1id;


    @Field(type = FieldType.Keyword,index=true,store=true)
    private String cat1name;

    @Field(type=FieldType.Long,index=true,store=true)
    private Long cat2id;

    @Field(type = FieldType.Keyword,index=true,store=true)
    private String cat2name;

    @Field(type = FieldType.Keyword,index = false,store=true)
    private String outlineImage;

    @Field(type=FieldType.Double,index=true,store=true)
    private Double price;




}
